import React from 'react'
import {createStackNavigator} from '@react-navigation/stack'
import NewsScreen from '../screens/News'

const Stack = createStackNavigator()

function NewsStack(): React.JSX.Element {
  return (
    <Stack.Navigator>
      <Stack.Screen
        name="NewsStack"
        component={NewsScreen}
        options={{
          title: '新闻',
          headerStyle: {
            backgroundColor: 'tomato',
          },
        }}
      />
    </Stack.Navigator>
  )
}

export default NewsStack
